package com.clotingshoppos.modules.Shiro.controller;

import com.clotingshoppos.common.util.RetResponse;
import com.clotingshoppos.common.util.RetResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/guest")
public class GuestController{

    @RequestMapping(value = "/enter", method = RequestMethod.GET)
    public RetResult login() {
        return new RetResponse().makeOKRsp().setMsg("欢迎进入，您的身份是游客");
    }

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public RetResult<Object> submitLogin() {
        return new RetResponse().makeOKRsp().setMsg("您拥有获得该接口的信息的权限！");
    }
}